import request from '../../../util/request.js';

export function D_setup(username) {
	return request({
		method: 'GET',
		url: '/D_setup?username=' + username,
	});
}

export function D_updateUserImage(image, username) {
	return request({
		method: 'post',
		url: "http://localhost:8086/D_updateUserImage?image=" + image + "&username=" + username
	});
}


export function Teampublis(username) {
	return request({
		method: 'GET',
		url: '/Teampublis?username=' + username,
	});
}

export function unpublist() {
	return request({
		method: 'GET',
		url: '/unpublist',
	});
}


export function D_updatePhone(phone, username) {
	return request({
		method: 'post',
		url: "D_updatePhone?phone=" + phone + "&username=" + username
	});
}

export function D_updateUserName(name, username) {
	return request({
		method: 'post',
		url: "D_updateUserName?name=" + name + "&username=" + username
	});
}

export function getTeams(username) {
	return request({
		method: 'GET',
		url: "getTeams?username=" + username
	});
}

export function getteamPublist(username) {
	return request({
		method: 'GET',
		url: "getteamPublist?username=" + username
	});
}

export function updateTeamStateToZero(username) {
	return request({
		method: 'POST',
		url: "updateTeamStateToZero?username=" + username
	});
}



export function updatepulistStateTothree(ID) {
	return request({
		method: 'POST',
		url: "updatepulistStateTothree?ID=" + ID
	});
}

